package tds.model2.demo;

public class BootStrap {
	public static void main(String[] args) {
		Context context;

		//由于实例化不同的策略，所以在最终调用contextInterface方法的结果也不相同
		context = new Context(new ConcreteStrategyA());
		context.contextInterface();

		context = new Context(new ConcreteStrategyB());
		context.contextInterface();

		context = new Context(new ConcreteStrategyC());
		context.contextInterface();

	}
}
